#pragma once
#include "structs.h"
class Cyaffs_ecc
{
public:
	Cyaffs_ecc(void);
	~Cyaffs_ecc(void);
	void yaffs_ECCCalculate(const unsigned char * data, unsigned char * ecc);
	int yaffs_ECCCorrect(unsigned char * data, unsigned char * read_ecc, const unsigned char * test_ecc);
	void yaffs_ECCCalculateOther(const unsigned char * data, unsigned nBytes, yaffs_ECCOther * eccOther);
	int yaffs_ECCCorrectOther(unsigned char * data, unsigned char nBytes, yaffs_ECCOther * read_ecc, const yaffs_ECCOther * test_ecc);
};
